package javaweb.wudu.zengismall.data;

import javaweb.wudu.zengismall.dataBean.Computer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ComputerMapper {
    @Select("select * from mycomputers")
    List<Computer> selectAllComputer();

    @Select("select * from mycomputers where #{min} < price and  price < #{max}")
    List<Computer> selectByPriceComputer(float min,float max);
}
